package org.example.studentsystem_back.service;

import jakarta.servlet.http.HttpServletRequest;
import org.example.studentsystem_back.common.CommonResponse;
import org.example.studentsystem_back.domain.Students;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.studentsystem_back.dto.PageDTO;
import org.example.studentsystem_back.vo.dataCenterVo.StudentDataCenterVo.StudentDataCenterVo;
import org.example.studentsystem_back.vo.studentMangeVo.StudentsVo;
import org.example.studentsystem_back.vo.studentMangeVo.UpdateStudentVo;
import org.example.studentsystem_back.vo.userManageVo.PageStudentVo;


import java.util.List;

/**
* @author 黄照凌
* @description 针对表【students】的数据库操作Service
* @createDate 2024-07-09 16:58:53
*/
public interface StudentsService extends IService<Students> {
    //获取所有学生信息
    CommonResponse<StudentsVo> getCurrentStudents(HttpServletRequest request);
    //根据userId获取学生信息
    CommonResponse<StudentsVo> getStudentByUserId(String userId);
    //添加学生信息
    CommonResponse<StudentsVo> addStudent(Students student);
    //修改学生信息
    CommonResponse<UpdateStudentVo> updateStudent(String userId, UpdateStudentVo updateStudentVo);
    //删除学生
    CommonResponse<StudentsVo> deleteStudent(String studentId);
    //分页查询学生信息
    CommonResponse<PageStudentVo> getAllStudentsByPage(PageDTO pageDTO);
    //获取学生数据
    CommonResponse<StudentDataCenterVo> getStudentDataCenter();
}
